package com.moji.util;

//import com.googlecode.aviator.AviatorEvaluator;
import lombok.extern.slf4j.Slf4j;

import java.math.BigDecimal;
import java.util.Map;

@Slf4j
public class CalculatorUtil {

    /**@param  adjustmentFormula 理计公式
     * @param  dataMap     参数信息
     * 根据计算公式和参数计算
     * @return
     */
    public static BigDecimal formulaCalculate(String adjustmentFormula, Map<String, Object> dataMap){
        log.debug("理算公式====={},参数====={}",adjustmentFormula,dataMap);
        //Object execute = AviatorEvaluator.execute(adjustmentFormula, dataMap);
        //return new BigDecimal(String.valueOf(execute));
        return null;
    }

}
